/**
 * 
 */
package org.ewaf.framework.model;

import java.util.List;

/**
 * @author peng.sunp
 * 
 */
public class PagingInfo<C, I> {

	private PagingSummary summary = new PagingSummary();
	private C condition;
	private List<I> items;

	
	public int getPage() {
		return summary.getPage();
	}

	public int getStart()
	{
		return summary.getStart();
	}
	
	public int getLimit()
	{
		return summary.getLimit();
	}
	
	public int getTotal() {
		return summary.getTotal();
	}

	public void setTotal(int total) {
		this.summary.setTotal(total);
	}

	public PagingSummary getSummary() {
		return summary;
	}


	public C getCondition() {
		return condition;
	}

	public void setCondition(C condition) {
		this.condition = condition;
	}

	public List<I> getItems() {
		return items;
	}

	public void setItems(List<I> items) {
		this.items = items;
	}

	public void setStart(int start) {
		this.summary.setStart(start) ;
	}
	
	public void setLimit(int limit) {
		this.summary.setLimit(limit) ;
	}
}
